.class public Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Ljava/util/Observer;


# instance fields
.field public a:Landroid/widget/TextView;

.field public b:Landroid/widget/ListView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/ImageView;

.field private e:Lcom/waiqin365/lightapp/im/contactlist/a/c;

.field private f:Landroid/os/Handler;

.field private g:Ljava/util/List;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;Lcom/waiqin365/lightapp/im/contactlist/a/c;)Lcom/waiqin365/lightapp/im/contactlist/a/c;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->e:Lcom/waiqin365/lightapp/im/contactlist/a/c;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->g:Ljava/util/List;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;
    .locals 1

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;Ljava/util/List;)Ljava/util/List;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->g:Ljava/util/List;

    return-object p1
.end method

.method private a(Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;
    .locals 5

    const/4 v1, 0x0

    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/a;-><init>()V

    const-string/jumbo v2, "-1"

    iput-object v2, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    if-eqz p1, :cond_0

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    sget-object v4, Lcom/waiqin365/base/db/offlinedata/q;->b:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v3, p1, v4, v1}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lcom/waiqin365/base/db/offlinedata/q;Z)Ljava/util/ArrayList;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    if-nez p1, :cond_1

    :goto_0
    sget-object v4, Lcom/waiqin365/base/db/offlinedata/q;->a:Lcom/waiqin365/base/db/offlinedata/q;

    invoke-virtual {v3, v0, v4}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lcom/waiqin365/base/db/offlinedata/q;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :goto_1
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    const/4 v3, 0x1

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->e:Z

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iput-object p1, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->a:Lcom/waiqin365/lightapp/kehu/share/a/a;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_1
    move-object v0, p1

    goto :goto_0

    :cond_2
    return-object v2
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/im/contactlist/h;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/im/contactlist/h;-><init>(Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->f:Landroid/os/Handler;

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;)Lcom/waiqin365/lightapp/im/contactlist/a/c;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->e:Lcom/waiqin365/lightapp/im/contactlist/a/c;

    return-object v0
.end method

.method private b()V
    .locals 3

    const v0, 0x7f0c070f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->d:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0711

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->c:Landroid/widget/TextView;

    const v0, 0x7f0c0712

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->a:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->c:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080765

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c07b3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v0, Lcom/waiqin365/lightapp/im/contactlist/i;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->f:Landroid/os/Handler;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/im/contactlist/i;-><init>(Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;Landroid/os/Handler;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/contactlist/i;->start()V

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->showProgressDialog(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    const/4 v0, -0x1

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    if-ne p2, v0, :cond_0

    packed-switch p1, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->finish()V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x68
        :pswitch_0
    .end packed-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c070f
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f03014f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/contactlist/ContactListSelectByDepartmentActivity;->b()V

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/gaea/client/a/b;->addObserver(Ljava/util/Observer;)V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 1

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/contactlist/a/c;

    invoke-virtual {v0, p3}, Lcom/waiqin365/lightapp/im/contactlist/a/c;->b(I)V

    return-void
.end method
